package com.ruoyi.common.NoEnglish;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义xss校验注解
 *
 * @author ruoyi
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(value = { ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER })
@Constraint(validatedBy = { NoEnglishValidator.class })
public @interface NoEnglish
{
    String message()

            default "输入内容不允许含有大写英文字母!!!";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
